import React, { Component } from 'react';
import {View} from 'react-native'
import { Label,ThemeProvider,Button } from 'iftide';
import Basic from './demo/Basic.js'
import Basic2 from './demo/Basic2.js'

export default class Tab_Demo extends Component{
    constructor(props) {
        super(props);
        this.state = {
            theme:"themeB"
        }
    }

    onPress1=()=>{
        this.setState({
            theme:"themeA",
        })
    }

    render() {
         return (
             <View style={{flex:1,paddingBottom:50}}>
                    <ThemeProvider  theme={this.state.theme}/>
                    <Button title={"切换"} size={"L"} onPress={this.onPress1}/>
                    <Basic/>
                    <Basic2/>
             </View>
         )
         
    }
}
